}
static EGLDisplay
-wayland_get_display (GdkWaylandDisplay *display_wayland)
+wayland_get_display (struct wl_display *wl_display)
{
EGLDisplay dpy = NULL;
if (getPlatformDisplay)
dpy = getPlatformDisplay (EGL_PLATFORM_WAYLAND_EXT,
- display_wayland->wl_display,
+ wl_display,
NULL);
if (dpy)
return dpy;
if (getPlatformDisplay)
dpy = getPlatformDisplay (EGL_PLATFORM_WAYLAND_EXT,
- display_wayland->wl_display,
+ wl_display,
NULL);
if (dpy)
return dpy;
}
- return eglGetDisplay ((EGLNativeDisplayType) display_wayland->wl_display);
+ return eglGetDisplay ((EGLNativeDisplayType)wl_display);
}
#endif